package android.framework.binding;

public class BindableValue<T> extends BaseBindable<T>{
	private T value;
	
	public BindableValue(T value){
		this.value = value;
	}
	
	public T getValue(){
		return value;
	}
	
	public void setValue(T value){
		if(this.value != value){
			this.value = value;
			notifyListener(value);
		}
	}

	public void notifyChanges(T value) {
		this.value = value;
	}

	public T getLastValue() {
		return value;
	}
	
}
